<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script src="spellcheck_test.js"></script>
<script>
spellcheck_test(
  '',
  document => {
    var element = document.getElementsByTagName('html')[0];
    document.adoptNode(element);
    var newElement = document.createElementNS('http://www.w3.org/2000/svg', 'title');
    document.appendChild(newElement);
    document.execCommand('SelectAll', false)
    document.designMode = 'on';

    if (window.eventSender) {
      eventSender.mouseMoveTo(10, 10);
      eventSender.contextClick();
    }
  },
  '<title></title>',
  'Should not crash when a node does not have a layout object associated with it.');
</script>
